.joint-paper {
    font-size: 12px;
    overflow: auto;
}

.joint-paper.minimap {
    overflow: hidden;
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transform: scale(0.4);
    -webkit-transform: scale(0.4);
}

.link-tools .tool-remove {
    display: none;
}

.link-tools .tool-options {
    display: none;
}

.joint-link .marker-arrowhead {
    display: none;
}

.joint-paper .joint-link.joint-theme-default .connection-wrap {
    stroke: transparent;
    cursor: auto;
}

.element-mask {
    position: absolute;
    z-index: 50;
    cursor: pointer;
}

.element-text {
    position: absolute;
    z-index: 0;
    text-align: center;
}

.element-text .text {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 100%;
}

.element-text.text-right {
    text-align: right;
}

.element-text .input {
    width: 80px;
    text-align: center;
}

.element-text.text-right .input {
    text-align: right;
}

.hide {
    display: none !important;
}

.element-mask.hover-target,
.element-mask.drag-target {
    z-index: 100;
}

.element-mask.dragging {
    z-index: inherit;
}

.element-action {
    position: absolute;
    left: 100%;
    padding-left: 2px;
}

.element-action.inner-right {
    left: auto;
    right: 100%;
}

.element-action.align-right {
    left: auto;
    right: -40px;
}

.execute-action {
    width: 30px;
    height: 20px;
    display: block;
    margin-top: 10px;
    border-radius: 50%;
    font-size: 14px;
}

.execute-action i {
    margin-left: 10px;
}

.action-toggle {
    position: absolute;
    right: -8px;
    top: 12px;
    width: 16px;
    height: 16px;
    text-align: center;
    border-radius: 50%;
}

.action-toggle.opened {
    display: none;
}

.element-action .action-toggle i {
    padding: 2px;
    display: block;
}

.action-menu {
    display: none;
    width: 80px;
    padding: 0;
    margin: 0;
}

.action-menu.open {
    display: block;
}

.action-menu .action-item {
    list-style: none;
    padding: 5px 10px;
    display: block;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.drag-action {
    position: absolute;
    display: block;
    z-index: inherit;
    background-color: transparent;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    top: -20px;
}

.drag-action .action {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    vertical-align: middle;
}

.join-action {
    left: 65px;
    top: 5px;
}

.replace-action,
.union-action {
    top: -20px;
    left: 20px;
}

.link-action {
    left: -25px;
    top: 5px;
}

.flow-color-picker-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.flow-element.color-picker {
    position: absolute;
}

.flow-element.color-picker ul {
    width: 98px;
    height: 98px;
    padding: 5px;
    box-sizing: border-box;
}

.flow-element.color-picker .color-item {
    margin: 2px;
    list-style: none;
    display: block;
    width: 18px;
    height: 18px;
    float: left;
    border-radius: 50%;
}

.element-error {
    position: absolute;
    right: -26px;
    top: -9px;
}

.element-error .ygmat-notific-error {
    color: #E64B4B;
}

.element-error .error-message {
    display: none;
    position: absolute;
    top: -20px;
    left: 20px;
    min-height: 50px;
    width: 150px;
    padding: 10px;
    border-radius: 4px;
    z-index: 201;
}

.element-error .error-message:before,
.element-error .error-message:after{
    content: '';
    position: absolute;
    top: 25px;
    left: -6px;
    width: 0;
    height: 0;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid;
}

.element-error .error-message:before{
    filter: blur(1px);
    -webkit-filter: blur(1px);
}

.element-error .error-message:after{
    left: -4px;
}

.element-error.hover .error-message {
    display: block;
}

.element-filter {
    position: absolute;
    right: -5px;
    top: -10px;
}


.element-filter .filter-message {
    display: none;
    position: absolute;
    top: -20px;
    left: 20px;
    min-height: 50px;
    width: 150px;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    z-index: 201;
}

.element-filter .filter-message:before,
.element-filter .filter-message:after{
    content: '';
    position: absolute;
    top: 25px;
    left: -6px;
    width: 0;
    height: 0;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid;
}

.element-filter .filter-message:before{
    filter: blur(1px);
    -webkit-filter: blur(1px);
}

.element-filter .filter-message:after{
    left: -4px;
}

.element-filter.hover .filter-message {
    display: block;
}

.element-filter .filter-message .process_nodeFilter_title{
    font-size: 14px;
}

.element-filter .filter-message .element-filter-item{
    display: block;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.element-filter i.fa {
    color: #0cb1a1;
}

.joint-theme-black .element-filter i.fa{
    color: #397fc5;
}

.element-change-sign {
    position: absolute;
    right: -8px;
    top: -10px;
}

.element-change-sign .ygmat-bell-o,.element-change-sign .fa {
    color: #0cb1a1;
}

.joint-theme-black .element-change-sign i.fa,.joint-theme-black .element-change-sign .ygmat-bell-o{
    color: #397fc5;
}

.element-change-sign .change-message {
    position: absolute;
    top: -20px;
    left: 20px;
    min-height: 50px;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
    z-index: 201;
}

.element-change-sign .change-message .ygmat-times{
    position: absolute;
    right: 6px;
    top: 8px;
}

.element-change-sign .change-message:before,
.element-change-sign .change-message:after{
    content: '';
    position: absolute;
    top: 25px;
    left: -6px;
    width: 0;
    height: 0;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid;
}

.element-change-sign .change-message:before{
    filter: blur(1px);
    -webkit-filter: blur(1px);
}

.element-change-sign .change-message:after{
    left: -4px;
}

.element-change-sign .add-field-ctx,
.element-change-sign .delete-field-ctx,
.element-change-sign .change-field-ctx{
    white-space: nowrap;
    margin-top: 5px;
}

.element-change-sign .change-field-ctx .change-field-title,
.element-change-sign .change-field-ctx .change-field-content{
    display: inline-block;
    vertical-align: top;
}


/* theme */

/* black theme */

.joint-paper.joint-theme-black {
    background-color: #1e2931;
}

.joint-theme-black .element-filter .filter-message,
.joint-theme-black .element-change-sign .change-message {
    background-color: rgba(45, 73, 102, 0.86);
    color: #c0d5eb;
}


.joint-theme-black .element-filter .filter-message:before,
.joint-theme-black .element-filter .filter-message:after,
.joint-theme-black .element-error .error-message:before,
.joint-theme-black .element-error .error-message:after,
.joint-theme-black .element-change-sign .change-message:before,
.joint-theme-black .element-change-sign .change-message:after{
    border-right-color: rgba(45, 73, 102, 0.86);
}


.joint-theme-black .element-error .error-message:before,
.joint-theme-black .element-filter .filter-message:before,
.joint-theme-black .element-change-sign .change-message:before{
    filter: blur(0px);
    -webkit-filter: blur(0px);
}

.joint-theme-black .action-menu,
.black-theme .flow-element.color-picker ul {
    background-color: rgba(7, 21, 36, 0.5);
}

.joint-theme-black .action-menu .action-item.hover {
    background-color: rgba(45, 73, 102, 0.86);
}


.joint-theme-black .drag-action {
    background-color: rgba(7, 21, 36, 0.5);
    border: 1px dashed #2f83d6;
}

.joint-theme-black .drag-action .action {
    background-color: rgba(45, 73, 102, 0.86);
    color: #c0d5eb;
}

.joint-theme-black .element-error .error-message {
    background-color: rgba(45, 73, 102, 0.86);
    color: #c0d5eb;
}

.joint-theme-black .drag-action .action.drag-target {
    box-shadow: 0 0 1px 1px #2f83d6;
}

.joint-theme-black .flow-element.color-picker .color-item.active {
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.7);
}

.joint-theme-black .action-toggle .background {
    fill: #3c5267;
}

.joint-theme-black .action-toggle .plus {
    fill: #1f2932;
}

/* white theme */

.joint-paper.joint-theme-white {
    background-color: #f5f5f5;
}

.joint-theme-white .action-menu,
.flow-element.color-picker ul {
    background-color: rgba(255, 255, 255, 0.5);
    color: #575a64;
}

.joint-theme-white .action-menu .action-item.hover {
    background-color: rgba(45, 74, 102, 0.08);
}


.joint-theme-white .drag-action {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 2px 2px #dddddd;
}

.joint-theme-white .drag-action .action {
    background-color: rgba(45, 73, 102, 0.86);
    color: #c0d5eb;
}

.joint-theme-white .element-error .error-message,
.joint-theme-white .element-filter .filter-message,
.joint-theme-white .element-change-sign .change-message {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 2px 2px #dddddd;
}

.joint-theme-white .element-filter .filter-message:before,
.joint-theme-white .element-error .error-message:before,
.joint-theme-white .element-change-sign .change-message:before{
    border-right-color: #dddddd;
}


.joint-theme-white .element-filter .filter-message:after,
.joint-theme-white .element-error .error-message:after,
.joint-theme-white .element-change-sign .change-message:after{
    border-right-color: rgba(255, 255, 255, 0.9);
}


.joint-theme-white .drag-action .action.drag-target {
    box-shadow: 0 0 1px 1px #2f83d6;
}

.flow-element.color-picker ul {
    /* box-shadow: 0 0 1px 1px #3399ff; */
}

.joint-theme-white .flow-element.color-picker .color-item.active {
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.7);
}

.joint-theme-white .action-toggle .background {
    fill: #bac2cd;
}

.joint-theme-white .action-toggle .plus {
    fill: #f6f6f6;
}